{% extends "layout.html" %}
{% block content %}

<div class="row-fluid">
  <div class="span12">
    <div class="pretty_list_wrapper">
      <ul class="">
        {% if all_trucks %}
          {% for t in all_trucks %}
            <li>
            <a href="{{ url_for('truck_detail',truck_id = t.id) }}">
              <div class="pl_bigcover_wrapper">
                <img class="pl_bigcover" src="/static/img/trucks_cover_image/truck{{t.id}}.png"/>
              </div>
              <a class="pl_title black_glossy_bar" href="{{ url_for('truck_detail',truck_id = t.id) }}">{{ t.name }}
                <img class="go_right_button pull-right" src="/static/img/right_arrow.png"/>

              </a>
              <div class="truck_description">
                <p>{{ t.description }}</p>
              </div>
            </a>
            </li>

          {% endfor %}
        {% endif %}
      </ul>
    </div>
  </div>
</div>

{% endblock %}